export function evaluationsExchange(evaluations) {
	for (let evaluation of evaluations) {
		if (evaluation.reputation === 1) {
			evaluation.reputation = 'good';
		} else if (evaluation.reputation === 2) {
			evaluation.reputation = 'normal';
		} else if (evaluation.reputation === 3) {
			evaluation.reputation = 'bad';
		}
	}
	return evaluations;
}

export function petsExchange(pets) {
	for (let pet of pets) {
		// 处理物种
		if (pet.species === 1) {
			pet.species = '狗';
		} else if (pet.species === 2) {
			pet.species = '猫';
		}
		// 处理品种
		if (pet.breed === 1) {
			pet.breed = '边境牧羊犬';
		} else if (pet.breed === 2) {
			pet.breed = '金毛';
		} else if (pet.breed === 3) {
			pet.breed = '拉布拉多';
		}
		// 处理绝育
		if (pet.isNeuter === 1) {
			pet.isNeuter = '未绝育';
		} else if (pet.isNeuter === 2) {
			pet.isNeuter = '已绝育';
		}
	}
	return pets;
}

export function servicesExchange(services) {
	for (let service of services) {
		serviceExchange(service);
	}
	return services;
}

export function serviceExchange(service) {
	if (service.type === 1) {
		service.type = "洗澡";
	} else if (service.type === 2) {
		service.type = "寄养";
	}
	return service;
}

export default function() {
	// sadasdd
}
